home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / stdwin.zoo / h / editwin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-30  |  1.3 KB  |  47 lines

  1. /* Text Edit Window */
  2.  
  3. typedef struct editwin {
  4.     /* Fields can be read by the caller but shouldn't be changed */
  5.     WINDOW *win;
  6.     TEXTEDIT *tp;
  7.     char *filename;
  8.     char /*tbool*/ saved;
  9. } EDITWIN;
  10.  
  11. #if 0
  12. EDITWIN *ewcreate();    /* Given a file name, or NULL for untitled */
  13. EDITWIN *ewnew();    /* Creates a new, untitled window */
  14. EDITWIN *ewopen();    /* Starts with an 'Open' dialog */
  15. EDITWIN *ewfind();    /* Finds EDITWIN* given a WINDOW* */
  16. #endif
  17.  
  18. #ifdef __STDC__
  19. # define    P(s) s
  20. #else
  21. # define P(s) ()
  22. #endif
  23.  
  24. EDITWIN *ewfind P((WINDOW *win ));
  25. int ewcount P((void ));
  26. EDITWIN *ewcreate P((char *filename ));
  27. EDITWIN *ewnew P((void ));
  28. EDITWIN *ewopen P((void ));
  29. bool ewclose P((EDITWIN *ew ));
  30. bool ewsave P((EDITWIN *ew ));
  31. bool ewsaveas P((EDITWIN *ew ));
  32. bool ewsavecopy P((EDITWIN *ew ));
  33. bool ewsaveprompt P((EDITWIN *ew , char *prompt , bool changefile ));
  34. bool ewrevert P((EDITWIN *ew ));
  35. bool ewreadfile P((EDITWIN *ew , char *filename ));
  36. void ewsetdimensions P((EDITWIN *ew ));
  37. bool ewwritefile P((EDITWIN *ew , char *filename ));
  38. bool ewevent P((EDITWIN *ew , EVENT *e , bool *closed_return ));
  39. bool ewsaveall P((void ));
  40. bool ewcloseall P((void ));
  41. void ewreplace P((EDITWIN *ew , char *str ));
  42. void ewundo P((EDITWIN *ew ));
  43. void ewcopy P((EDITWIN *ew ));
  44. void ewpaste P((EDITWIN *ew ));
  45.  
  46. #undef P
  47.